﻿using System.Collections.ObjectModel;
using tumblr.Models.PostModel;

namespace tumblr.ViewModels
{
    public class AllPostsViewModel : ViewModelBase
    {
        private string _title;
        public string Title 
        {
            get
            {
                return _title;
            }
            set
            {
                if (_title != value)
                {
                    _title = value;
                    RaisePropertyChanged("Title");
                }
            }
        }

        public ObservableCollection<PostModelBase> Posts { get; set; }

        public AllPostsViewModel()
        {
            Posts = new ObservableCollection<PostModelBase>();
        }
    }
}
